import request from '@/utils/request'

// 查询年审列表
export function listExamined(query) {
  return request({
    url: '/examined/list',
    method: 'get',
    params: query
  })
}

// 导出年审
export function exportExamined(data) {
  return request({
    url: '/examined/export',
    method: 'post',
    data: data
  })
}



// 查询年审详细
export function getExamined(id) {
  return request({
    url: '/examined/examined/' + id,
    method: 'get'
  })
}

// 新增年审
export function addExamined(data) {
  return request({
    url: '/examined/apply',
    method: 'post',
    data: data
  })
}

// 修改年审
export function updateExamined(data) {
  return request({
    url: '/examined/detailStatus ',
    method: 'put',
    data: data
  })
}

// // 根据查询所在组织信息
// export function getUserExamined() {
//     return request({
//       url: '/committee/org/orgNameList/',
//       method: 'get'
//     })
//   }
  // 查询社团信息列表
export function getUserExamined(query) {
    return request({
      url: '/committee/org/list',
      method: 'get',
      params: query
    })
  }

// 删除年审
export function delExamined(id) {
  return request({
    url: '/examined/remove/' + id,
    method: 'delete'
  })
}


// 修改审核状态
export function updateStatus(id,checks) {
  return request({
    url: '/examined/examined/updateStatus/'+ id +"/"+ checks,
    method: 'put'
  })
}

/** 学期列表 */
export function GetYearList(query) {
  return request({
    url: '/committee/year/list',
    method: 'get',
    params: query
  })
}


